%% getFrame
function [frame] = getMyFrame(v)
[nX, nY] = size(v);
n = nX * nY;
frame = zeros(1, nX * nY);
for i = 1:nX
    for j = 1:nY
    	frame(1, (i - 1) * nY + j) = v(i, j);
    end
end % for

end % function getframe